{include file="head.html"}
<style>
.list_gouest {
}
.list_gouest ul {
	width:100%;
	border:1px solid #dddddd;
	margin-bottom:20px;
}
.list_gouest li {
}
.list_gouest_info {
	line-height:30px;
	padding-left:10px;
	border-bottom:3px solid #cccccc;
	background-color:#f1f1f1;
	color:#333
}
.list_gouest_tool {
	line-height:25px;
	height:25px;
	padding-left:10px;
	padding-right:10px;
	background-color:#eeeeee;
	padding-right:10px;
	text-align:right
}
.list_gouest_body {
	padding:10px !important;
}
</style>
<div id="maincontent">
  <div class="wrap">
    <div class="crumbs"> <a href="__APP__/index/home">{lang='插件'}</a> <a href="#">{lang='在线留言'}</a> </div>
    <!--<hr />
    <div class="admin_main_function"> <a href="__URL__/adminsetting">{lang='留言设置'}</a> </div>-->
    <div style="clear:both; height:15px;"></div>
    <form action="__URL__/batch_manage" method="post" name="batch" id="batch"  >
      
      <?php if(!empty($list)) foreach($list as $vo){?>
        <table class="list_table table_style">
		  <tr>
            <td width="10%"><div align="center"></div></td>
            <td width="30%"><div align="center">内容</div></td>
            <td width="30%"><div align="center">时间</div></td>
            <td width="30%"><div align="center">客户信息</div></td>
          </tr>
          <tr>
            <td width="10%" align="center"><center><input name="id[]" type="checkbox" id="id[]" value="{$vo['id']}" ></center></td>
            <td width="30%">{$vo['content']}</td>
            <td width="30%"><?php echo date('Y-m-d h:i:s',$vo['time']); ?></td>
            <td width="30%">
			<br />
			{lang='电话'}：{$vo['tel']}<br />
			{lang='QQ'}：{$vo['qq']}<br />
			{lang='姓名'}：{$vo['name']}<br />
		
			</td>
          </tr>
        </table>
        <div style="height:10px;"></div>
        <?php }?>
      
      <div>
      <div style="float:left;margin-top:10px;">
        <div style="float:left">
          <input style="margin:0; padding:0"type="checkbox" id="checkall" onClick="javascript:CheckAll(this.form);" />
          <select name="mode" id="mode" onChange="on_change()">
            <option value="1">{lang='批量删除'}</option>
            <!--<option value="2">{lang='批量锁定'}</option>
            <option value="3">{lang='批量审核'}</option>-->
          </select>
        </div>
        <div style="float:left; margin-left:5px;">
          <input name="chenked" id="chenked" type="hidden" value="" />
        </div>
        <div style="float:left"> <a class="nextPage" href="javascript:document.getElementById('batch').submit();">{lang='执行'}</a> </div>
      </div>
      <div style="float:right;margin-top:10px;" id="page">{$page}</div>
    </div>
    </form>
  </div>
</div>
<script language="javascript">
function CheckAll(form){
for(var i=0;i<form.elements.length;i++){
   var e=form.elements[i];
   if(e.type=="checkbox" && e.id!="checkall"){      //如果form中元素是复选框并且不是"全选"复选框时
   e.checked=form.checkall.checked;
   }
}
};
</script> 
<script type="text/javascript">
//批量操作
function on_change(){
  var temp = document.getElementById("mode").value;
  if(temp == 4){
  document.getElementById("schange").style.display="block";
  }else{
  document.getElementById("schange").style.display="none";
  }
  }
</script>
</body></html>